<?php
	get_header();
?>
<div id="post-0" class="post-0 page type-page status-publish hentry archive">
	<div id="entry-header">
		<h1 id="entry-title"><?php echo __('Archive', "awisp.theme");?></h1>
	</div>
	<div id="entry-content">
		<?php
			if(have_posts()){
				echo awisp_posts_nav_links(get_next_posts_link(__('&larr; Older posts', "awisp.theme")), get_previous_posts_link(__('Newer posts &rarr;', "awisp.theme")));
		?>
		<ol>
		<?php
				while(have_posts()){
					the_post();
					echo '<li><a href="' . get_permalink() . '">' . get_the_title() . '</a></li>';
				}
		?>
		</ol>
		<?php
				echo awisp_posts_nav_links(get_next_posts_link(__('&larr; Older posts', "awisp.theme")), get_previous_posts_link(__('Newer posts &rarr;', "awisp.theme")));
			}
			else{
		?>
				<p><?php echo __('This archive doesn\'t contain any post. Try another one!', "awisp.theme");?></p>
		<?php
			}
		?>
	</div>
</div>
<?php
	get_footer();
?>